import { createBrowserRouter } from 'react-router-dom'
import Login from '../pages/Login/Login';
import Register from '../pages/Register/Register';
import Home from '../pages/Home/Home';
import Mywz from '../pages/Mywz/Mywz';
import List from '../pages/List/List';
import Xq from '../pages/Xq/Xq';
import Message from '../pages/Message/Message';
import Tz from '../pages/Tz/Tz'
import MyPiao from '../pages/MyPiao/MyPiao'
import Ddxq from '../pages/Ddxq/Ddxq'
import Pw from '../pages/Pw/Pw'
import Cg from '../pages/Cg/Cg'
const routers = [
    {
        path: "/",
        element: <Login />,
    },
    {
        path: "/Register",
        element: <Register />,
    },
    {
        path: "/Home",
        element: <Home />,
    },
     {
        path: "/Mywz",
        element: <Mywz />,
    },
    {
        path: "/List",
        element: <List />,
    },
    {
        path: "/Xq/:id",
        element: <Xq />,
    },
     {
        path: "/Message",
        element: <Message />,
    },
     {
        path: "/Tz",
        element: <Tz />,
    },
     {
        path: "/Cg",
        element: <Cg />,
    },
    {
        path: "/MyPiao",
        element: <MyPiao />,
    },
    {
        path: "/Ddxq",
        element: <Ddxq />,
    },
     {
        path: "/Pw",
        element: <Pw />,
    },
    
]

const router = createBrowserRouter(routers);

export default router